#ifndef __FONT_H 
#define __FONT_H 

#ifdef __cpluplus
extern "C" {
#endif

#include "_window.h"

#define FONT_FILE       "data/fonts/decker.ttf"

#define FONT_SUCCESS    0
#define FONT_FAILURE    -1

extern int font_getStringWidth(unsigned char *text, unsigned int font_height);

extern int font_init(unsigned char *filename);

extern int font_render(unsigned char *text, unsigned int x, unsigned int y,
        signed int fade, unsigned int font_height, window *winp, unsigned int r,
        unsigned int g, unsigned int b);

extern void font_setExtraAdvanceX(long long advanceX);

extern void font_setExtraAdvanceY(long long advanceY);

#ifdef __cpluscplus
}
#endif

#endif

